//
//  QDailyAPIConstants.m
//  FakeQDaily
//
//  Created by mewxiv on 8/12/16.
//  Copyright © 2016 Xensius. All rights reserved.
//
#import "QDailyAPIConstants.h"

NSString *const QDailyBaseURL = @"http://app3.qdaily.com";

/*
 * 账号管理
 */
NSString *const QDailyRegisterURL = @"users/verify";
NSString *const QDailyCompleteRegisterURL = @"users";
NSString *const QDailyChangePasswordURL = @"users";
NSString *const QDailyPhoneLoginURL = @"users/phone_sign_in";
NSString *const QDailyEmailLoginURL = @"users/sign_in";
NSString *const QDailyLogoutURL = @"users/sign_out";
NSString *const QDailyUpdateUserPersonalInfoURL = @"app3/users/update_my_personal_information";
NSString *const QDailyUserRadarURL = @"app3/users/radar";
NSString *const QDailyUserSubscriptionURL = @"app3/users/my_subscription";
NSString *const QDailyUserCenterURL = @"app3/users/center";

/*
 * 主页
 */
NSString *const QDailyHomeFeedURLFormat = @"app3/homes/index/%@";

/*
 * 侧边栏
 */
NSString *const QDailyHomeSideBarURL = @"app3/homes/left_sidebar";
NSString *const QDailyNewsCategoriesURLFormat = @"app3/categories/index/%@/%@";
NSString *const QDailySearchArticleURL = @"app3/searches/post_list";

/*
 * 栏目中心
 */
NSString *const QDailyColumnFeedURLFormat = @"app3/columns/index/%@/%@";
NSString *const QDailyColumnCenterSubscriptionPostsURL = @"app3/users/subscribe_column_posts";
NSString *const QDailyColumnCenterAllColumnsURLFormat = @"app3/columns/all_columns_index/%@";
NSString *const QDailyColumnCenterAddSubscribeURL = @"app3/subscribes/create_subscribe";
NSString *const QDailyColumnCenterRemoveSubscribeURL = @"app3/subscribes/remove_subscribe";
NSString *const QDailyColumnAuthorsAndSubscribersInfoURLFormat = @"app3/columns/info/%@";

/*
 * 文章详情
 */
NSString *const QDailyArticleDetailURLFormat = @"app3/articles/detail/%@";
NSString *const QDailyArticleInfoURLFormat = @"app3/articles/info/%@";
NSString *const QDailyArticleCommentsURLFormat = @"/app3/comments/index/article/%@/%@";
NSString *const QDailyArticleCreateCommentURL = @"app3/comments/create_comment";
NSString *const QDailyPraisePostURL = @"app3/praises/create_praise";
NSString *const QDailyTaggedArticleListURLFormat = @"app3/tags/index/%@/%@";

/*
 * 好奇心研究所
 */
NSString *const QDailyLabPaperListURLFormat = @"app3/papers/index/%@";
NSString *const QDailyLabPaperDetailURLFormat = @"app3/papers/detail/%@";
NSString *const QDailyLabOptionsURLFormat = @"app3/options/index/%@/%@";
NSString *const QDailyLabVoteResultURL = @"app3/papers/done";

/*
 * 我的消息
 */
NSString *const QDailyMyMessageCommentOnMeURL = @"app3/users/comment_on_my";
NSString *const QDailyMyMessagePraiseOnMeURL = @"app3/users/praise_on_my";
NSString *const QDailyMyMessageSystemMessageURL = @"app3/users/message_on_my";
NSString *const QDailyMyMessageSendOutCommentURL = @"app3/users/my_comments";

/*
 * 个人中心
 */
NSString *const QDailyUserCenterPraisedArticlesURL = @"app3/users/praises";
NSString *const QDailyUserCenterJoinedLabResearchURL = @"app3/users/papers";
NSString *const QDailyUserCenterRadarArticlesURLFormat = @"app3/radars/index/%@/%@";

/*
 * 好奇心日报信息url
 */
NSString *const QDailyAboutUsURL = @"http://app3.qdaily.com/app3/homes/aboutus.html";
NSString *const QDailyRegisterAgreementURL = @"http://www.qdaily.com/app/users/agreement";